Skip to content

Conversation

@threefjefff
Copy link
Collaborator

Describe your changes

Adds:

  • An additional way to trigger the Edit Snippet command (an edit button on the snippet)
  • Expand Snippet controll (and hide snippet control that returns to original view)
  • Hide/Show Results button that... hides and shows the results!

@threefjefff threefjefff requested a review from alizaberger May 12, 2025 09:57
@changeset-bot
Copy link

changeset-bot bot commented May 12, 2025

🦋 Changeset detected

Latest commit: 7a21cdd

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@stackoverflow/stacks-editor Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented May 12, 2025

Deploy Preview for stacks-editor ready!

Name Link
🔨 Latest commit bfe8930
🔍 Latest deploy log https://app.netlify.com/sites/stacks-editor/deploys/6821c5fd01e83b00087eea88
😎 Deploy Preview https://deploy-preview-440--stacks-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented May 12, 2025

Deploy Preview for stacks-editor ready!

Name Link
🔨 Latest commit bfe8930
🔍 Latest deploy log https://app.netlify.com/sites/stacks-editor/deploys/6821c5fd01e83b00087eea88
😎 Deploy Preview https://deploy-preview-440--stacks-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@netlify
Copy link

netlify bot commented May 12, 2025

Deploy Preview for stacks-editor ready!

Name Link
🔨 Latest commit 7a21cdd
🔍 Latest deploy log https://app.netlify.com/sites/stacks-editor/deploys/6824678657aeba000833a84f
😎 Deploy Preview https://deploy-preview-440--stacks-editor.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Collaborator

@alizaberger alizaberger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The code is exceptionally well-written and clear. I noticed 2 issues:

  1. The expand button does not behave the way it did in the legacy editor and in the Figma. There the behavior was to expand the entire snippet content, not just the results pane. The expanded snippet should have the snippet code, the buttons, and the results pane.
  2. When building locally, I got his error. Module not found: Error: Can't resolve '@stackoverflow/stacks-icons/src/Icon/StackSnippets.svg' in 'C:\Users\aberger\source\repos\Stacks-Editor\src\styles'

Copy link
Contributor

@giamir giamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Happy to approve as soon as the styling part is addressed. Thanks @threefjefff

@threefjefff threefjefff requested review from alizaberger and giamir May 13, 2025 10:11
Copy link
Contributor

@giamir giamir left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for addressing my comment @threefjefff

@threefjefff threefjefff requested a review from alizaberger May 14, 2025 09:51
@threefjefff threefjefff merged commit c9e49d0 into main May 14, 2025
5 checks passed
@threefjefff threefjefff deleted the jsmb/snippet-buttons branch May 14, 2025 15:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants